home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pivo 7
/
Pivo_7_1998_Tengu.d64
/
B joy tester BU
(
.txt
)
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
46 lines
100 rem *** joytest 64 ***
105 :
110 rem *** k.dybowski ***
115 :
120 :
125 s$=chr$(147):prints$:print:input"port 1 cz 2 (1/2) : ";p:c$=chr$(34)
130 if p=1 then p=56321:goto145
135 if p=2 then p=56320:goto145
140 goto 125
145 p$="wartosc "+c$+"not peek("+right$(str$(p),5)+") and 32"+c$+" = "
150 print s$:gosub 265
155 x1=160:y1=130:x2=197:y2=90:x3=125:y3=168:v=53248:s1=v+1:s2=v+2:s3=v+3
160 pokev+32,6:pokev+33,1:poke646,0
165 :
170 pokev+39,7:pokev+40,7:pokev+23,0:pokev+29,3:pokev+23,3:pokev+21,3
175 :
180 a = not peek(p) and 31:w=0:pokev+40,7
185 if a=0 or a=16 then pokev,x1:pokes1,y1:pokes2,x1:pokes3,y1
190 if a=>16 then w=16:pokev+40,2:a=(a and 15)
195 if a=1 then pokev,x1:pokes1,y2:pokes2,x1:pokes3,y2:goto240
200 if a=9 then pokev,x2:pokes1,y2:pokes2,x2:pokes3,y2:goto240
205 if a=8 then pokev,x2:pokes1,y1:pokes2,x2:pokes3,y1:goto240
210 if a=10 then pokev,x2:pokes1,y3:pokes2,x2:pokes3,y3:goto240
215 if a=2 then pokev,x1:pokes1,y3:pokes2,x1:pokes3,y3:goto240
220 if a=6 then pokev,x3:pokes1,y3:pokes2,x3:pokes3,y3:goto240
225 if a=4 then pokev,x3:pokes1,y1:pokes2,x3:pokes3,y1:goto240
230 if a=5 then pokev,x3:pokes1,y2:pokes2,x3:pokes3,y2
235 :
240 z=a+w:if len(str$(z))=2 then z$="0"+right$(str$(z),1):goto 250
245 z$=right$(str$(z),2)
250 printtab(1);p$z$chr$(145)chr$(157)chr$(32)
255 goto 180
260 :
265 for j=832 to 959:read q:poke j,q:next:poke 2040,13:poke 2041,14
270 for i=1 to 14:t=t+40:for x=55510+t to 55521+t:pokex,0:pokex-54272,160:next
275 next:return
280 :
285 data 000,126,000,001,255,128,007,255,224,015,255,240,031,255,248,063
290 data 255,252,063,255,252,126,000,126,124,000,062,252,000,063,252,000
295 data 063,252,000,063,124,000,062,126,000,126,063,255,252,063,255,252
300 data 031,255,248,015,255,240,007,255,224,001,255,128,000,126,000,000
305 data 000,126,000,001,255,128,007,255,224,015,255,240,031,255,248,063
310 data 255,252,063,255,252,127,255,254,127,255,254,255,255,255,255,255
315 data 255,255,255,255,127,255,254,127,255,254,063,255,252,063,255,252
320 data 031,255,248,015,255,240,007,255,224,001,255,128,000,126,000,000